import request from '@/utils/request'
import id from 'element-ui/src/locale/lang/id'

// 查询停车场列表
export function listTcPark(query) {
  return request({
    url: '/energy/tcPark/list',
    method: 'get',
    params: query
  })
}

// 查询停车场详细
export function getTcPark(id) {
  return request({
    url: '/energy/tcPark/' + id,
    method: 'get'
  })
}

// 新增停车场
export function addTcPark(data) {
  return request({
    url: '/energy/tcPark',
    method: 'post',
    data: data
  })
}

// 修改停车场
export function updateTcPark(data) {
  return request({
    url: '/energy/tcPark',
    method: 'put',
    data: data
  })
}

export function setPushPark(id) {
  return request({
    url: '/energy/tcPark/setPush/' + id,
    method: 'get',
  })
}

// 删除停车场
export function delTcPark(id) {
  return request({
    url: '/energy/tcPark/' + id,
    method: 'delete'
  })
}
